﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace MyUtility
{
    static public class CRC
    {
        [DllImport(@"D:\C\CRC\DLL_Output\CRCDLL_X64.dll", EntryPoint = "CRC8Calculate", CallingConvention = CallingConvention.Cdecl)]
        public static extern byte CRC8Calculate(byte[] a, UInt16 b);

        [DllImport(@"D:\C\CRC\DLL_Output\CRCDLL_X64.dll", EntryPoint = "CRC8CalculateByte", CallingConvention = CallingConvention.Cdecl)]
        public static extern byte CRC8CalculateByte(byte ori, byte now);
    }
}
